package com.itcheetah.springevent.myPublisherListener;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @className: DemoTest
 * @description: TODO
 * @author: cheetah
 * @date: 2022/4/7 11:29
 * @Version: 1.0
 */
@RestController
@RequestMapping("/demo")
public class DemoTest {

    @Autowired
    private MyPublisher myPublisher;

    @RequestMapping("/test")
    public void test() {
        myPublisher.publishEvent();
    }
}
